const BusinessError =require('./BusinessError')
class DuplicateValueError extends BusinessError {
    constructor(message) {
        super(message||'数据重复');
        this.name = this.constructor.name;
        this.errorCode='400000'
    }
}

class scriptIsRunningError extends BusinessError {
    constructor(message) {
        super(message||'脚本正在执行中，请稍后再试');
        this.name = this.constructor.name;
        this.errorCode='400001'
    }
}
module.exports={
    DuplicateValueError,
    scriptIsRunningError
}
